package cn.stylefeng.guns.modular.hx.storage.mapper;

import cn.stylefeng.guns.modular.hx.storage.entity.HxStorageOffShelf;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageOffShelfParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageOffShelfResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 下架任务表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-09-13
 */
public interface HxStorageOffShelfMapper extends BaseMapper<HxStorageOffShelf> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2023-09-13
     */
    List<HxStorageOffShelfResult> customList(@Param("paramCondition") HxStorageOffShelfParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2023-09-13
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HxStorageOffShelfParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2023-09-13
     */
    Page<HxStorageOffShelfResult> customPageList(@Param("page") Page page, @Param("paramCondition") HxStorageOffShelfParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2023-09-13
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HxStorageOffShelfParam paramCondition);


    IPage<HxStorageOffShelf> findOffShelfListPage(@Param("page") Page pageContext,@Param("paramCondition") HxStorageOffShelf hxStorageOffShelf,@Param("condition") String condition);

    Page<HxStorageOffShelfResult>  offShelt(@Param("page") Page pageContext,@Param("paramCondition") HxStorageOffShelfParam hxStorageOffShelfParam, @Param("condition")String condition);

    List<HxStorageOffShelfResult> findOffShelfList(@Param("paramCondition")HxStorageOffShelf hxStorageOffShelf, @Param("condition")String condition);

	HxStorageOffShelfResult findBySpec(@Param("paramCondition")HxStorageOffShelfParam param);

    List<HxStorageOffShelfResult> findxiajia(@Param("paramCondition")HxStorageOffShelfResult hxStorageOffShelfResult);

	HxStorageOffShelfResult sumOffShelf(@Param("paramCondition")HxStorageOffShelfParam hxStorageOffShelfParam);

	List<HxStorageOffShelfResult> findlistAllBySpec(@Param("paramCondition")HxStorageOffShelfParam hxStorageOffShelfParam, @Param("condition")String condition);

	HxStorageOffShelfResult count(@Param("paramCondition")HxStorageOffShelfParam hxStorageOffShelfParam, @Param("condition")String condition);

	int updateTaskFlag(@Param("paramCondition")HxStorageOffShelfParam hxStorageOffShelfParam);
}
